package com.blog.feign;

import com.blog.distribute.config.FeignConfig;
import com.blog.feign.fallback.ProductFeignClientFallBack;
import com.blog.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-product",fallback = ProductFeignClientFallBack.class)
public interface ProductFeignClient {
    @GetMapping("/product/{id}")
    Product getProductById(@PathVariable Integer id);
}
